﻿using System;
using System.Linq;
using System.Threading;
using Mono.Net;

namespace Furesoft.Auth
{
    public class Server
    {
        HttpListener listener;

        public Server(string address, int port)
        {
            listener = new HttpListener();
            listener.Prefixes.Add("http://" + address + ":" + port + "/");
        }

        public void Start()
        {
            listener.Start();

            Thread t = new Thread(loop);
            t.Start();
        }
  
        private void loop()
        {
            while (listener.IsListening)
            {

            }
        }
    }
}